import Storage from '@/utils/storage.js'
const address = {
	state() {
		return {
			address: {}
		}
	},
	mutations: {
		addAddress(state, item) {
			state.address = item
			Storage.set("defaultAddress",item)
		},
		storageToAddress(state){
			state.address = Storage.get("defaultAddress")
		}
	}
}

export default {
	address
}
